import request from '@/utils/request'

//查询受检人员
export function searchemployees(data) {
  return request({
    url: `/physical/physicaloccupational/searchemployees`,
    method: 'post',
    data: data
  })
}
//确认受检人员
export function occupationalHealthCheck(data) {
  return request({
    url: `/physical/physicaloccupational/occupationalhealthcheck`,
    method: 'post',
    data: data
  })
}
//确认报告
export function occupationalhealthchecksave(data) {
  return request({
    url: `/physical/physicaloccupational/occupationalhealthchecksave`,
    method: 'post',
    data: data
  })
}
// 评价依据列表
export function listBaseevaluation(query) {
  return request({
    url: '/basic/baseevaluation/list',
    method: 'get',
    params: query
  })
}
// 诊断标准列表
export function listBasediagnosisstandard(query) {
  return request({
    url: '/basic/basediagnosisstandard/list',
    method: 'get',
    params: query
  })
}
// 查询报告列表
export function listmain(query) {
  return request({
    url: '/physical/main/list',
    method: 'get',
    params: query
  })
}
// 删除报告
export function delmain(id) {
  return request({
    url: '/physical/main/' + id,
    method: 'delete'
  })
}
// 报告详情
export function getInfo(id) {
  return request({
    url: '/physical/main/' + id,
    method: 'get'
  })
}
// 修改报告信息
export function editReport(data) {
  return request({
    url: '/physical/main',
    method: 'put',
    data: data
  })
}
//报告审核
export function occupationalHealthApprove(data) {
  return request({
    url: '/physical/physicaloccupational/occupationalhealthcheckapprove',
    method: 'post',
    data: data
  })
}
